package com.func.domain.award.service.distribute.impl;

import com.func.domain.award.model.entity.DistributeAwardEntity;
import com.func.domain.award.repository.IAwardRepository;
import com.func.domain.award.service.distribute.IDistributeAward;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * <p>
 * OpenaiModelAward
 * </p>
 *
 * @author Simon
 * @version 2025.04.12.1.0.0
 * @description
 * @since 2025-04-12
 */

@Component (value = "openai_model")
@Slf4j
public class OpenaiModelAward implements IDistributeAward {

    @Resource
    private IAwardRepository awardRepository;

    @Override
    public void giveOutPrizes(DistributeAwardEntity distributeAwardEntity) {
        // TODO : 开发openai_model奖品分发服务
        log.info("奖品分发 : openai_model奖品 功能待开发");
        log.info("将奖品记录消费掉, distributeAwardEntity : {}", distributeAwardEntity);
        awardRepository.justConsumeAwardRecord(distributeAwardEntity);
    }
}
